package cn.flying.cloud.base.common.exception;


import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * 业务操作异常
 *
 * @author: admin
 * @date: 2022年04月02日 21:52
 * @version: 1.0
 */
public class BizException extends CommonException {


    public BizException() {
        super();
    }

    public BizException(BaseEnumInfo enumInfo) {
        super(enumInfo);
    }

    public BizException(BaseEnumInfo enumInfo, Throwable cause) {
        super(enumInfo, cause);
    }

    protected BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BizException(String message) {
        super("30000", message);
    }

    public BizException(String code, String message) {
        super(code, message);
    }

    public BizException(String code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public BizException(String message, Throwable cause) {
        super("30000", message, cause);
    }
}
